import myaxios from  '@/mytools/myaxios'
export function vModuleCode(moduleCode) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/ModuleManager/VModuleCode',
      method: 'get',
      params: { mc: moduleCode },
    })
  }
  

  export function getModuleDtosAll() {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/ModuleManager/GetModuleDtosAll',
      method: 'get'
    })
  }

  export function getModuleDtoByCode(moduleCode) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/ModuleManager/GetModuleDtoByCode',
      method: 'get',
      params: { code: moduleCode },
    })
  }

  export function moduleUpdate(moduleInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/ModuleManager/ModuleUpdate',
      method: 'post',
      data: moduleInfo,
    })
  }

  export function moduleAdd(moduleInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/ModuleManager/ModuleAdd',
      method: 'post',
      data: moduleInfo,
    })
  }